package com.ifinc.common.web.frame;

import com.ifinc.common.exception.ConfigException;

import java.lang.reflect.Method;

/**
 * User: luotao
 * Date: 13-11-28
 * Time: 13:37
 */
public class ExecutorJsp extends Executor {
    public ExecutorJsp(ClassInfo classInfo,ConfigContext configContext) {
        super(classInfo,configContext);
    }

    @Override
    public void verifyMethod() {
        if (!String.class.getName().equals(invokeMethod.getReturnType().getName())) {
            throw new ConfigException("class %s,method %s return type must be String", classInfo.getFullClassName(), invokeMethod.getName());
        }
    }
}
